<script type="text/javascript">
	//List Configuration
	$j("#list_statistics").jqGrid({
		url:'statistics/list',
		datatype:'json',
		mtype:'POST',
		colNames:['Decada', 'Sexo','AOD Prom', 'AOD I.Confianza', 'AOS Prom', 'AOS I.Confianza', 'IAR Prom', 'IAR I.Confianza', 'Cantidad'],
		colModel:[
		          {name:'decade', index:'decade', width:9, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] } },
		          {
			          name:'sex', index:'sex', width:10, align:"center",
			          stype: 'select',
			          searchoptions : 
				          { 
			          		value: "M:Masculino;F:Femenino",
			          		sopt: ['eq'] 
						  }
				  },
		          {name:'aod_avg', index:'aod_avg', width:8, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }},
		          {name:'aod_trust', index:'aod_trust', width:14, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }},
		          {name:'aos_avg', index:'aos_avg', width:8, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] } },
		          {name:'aos_trust', index:'aos_trust', width:14, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }},
		          {name:'air_avg', index:'air_avg', width:8, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }},
		          {name:'iar_trust', index:'iar_trust', width:14, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }},
		          {name:'amount', index:'amount', width:7, align:"right", searchoptions : { sopt:['eq','lt','le','gt','ge'] }}
		          
		],
		pager:'#gridpager_statistics',
		loadtext: 'Cargando Estadísticas ...',
		rowNum:10,
		rowList:[10],
		sortname:'decade',
		sortorder:'asc',
		autowidth:true,
		viewrecords:true,
		onSelectRow:function(id){},
		editurl:'',
		scrollOffset:0
		//caption:'Actividades'
	});

	$j("#list_statistics").setGridHeight(220);
	$j("#list_statistics").setGridWidth("678",true);
		
	//Form editing
	$j("#list_statistics").jqGrid('navGrid','#gridpager_statistics',{
			add:false,
			edit:false,
			del:false,
			search:true});
</script>
